package xyz.xtt.exchange.anno;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AnnotationService {
	private final Map<String, Class<?>> myCustomAnnotationMap;

	@Autowired
	public AnnotationService(Map<String, Class<?>> myCustomAnnotationMap) {
		this.myCustomAnnotationMap = myCustomAnnotationMap;
	}

	public void printAnnotatedClasses() {
		for (Map.Entry<String, Class<?>> entry : myCustomAnnotationMap.entrySet()) {
			System.out.println("Key: " + entry.getKey() + ", Value: " + entry.getValue().getName());
		}
	}
}
